<template>
	<uni-popup ref="popup" type="bottom" :maskClick="false">
		<view class="popup-wrap">
			<view class="popup-header">
				<text class="popup-header__item" @click="close">取消</text>
				<text class="popup-header__item" @click="submit">发布</text>
			</view>
			<view class="popup-content">
				<textarea class="popup-textarea" v-model="commentsValue" maxlength="200" fixed placeholder="请输入评论内容"></textarea>
				<view class="popup-count">{{commentsValue.length}}/200</view>
			</view>
		</view>
	</uni-popup>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		},
		methods: {
		
			//关闭弹窗
			close(){
				this.$refs.popup.close()
			},
			//发布评论
			submit(){
				console.log("发布")
				if(!this.commentsValue){
					uni.showToast({
						title: '请输入评论内容',
						icon: 'none'
					})
					return
				}
				this.setUpdateComment({
					content: this.commentsValue,
					...this.replyFormData
				})
				
			},
		}
	}
</script>

<style>

</style>
